package com.san.report.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.san.base.dao.ReportLogDao;
import com.san.metadata.domain.DataSourceDO;
import com.san.report.dao.NaturalPersonReportManager;
import com.san.report.service.NaturalPersonReportService;

@Service
public class NaturalPersonReportServiceImpl implements NaturalPersonReportService {

	@Autowired
	NaturalPersonReportManager naturalPersonReportManager;

	@Autowired
	ReportLogDao reportLogMapper;

	@Override
	public List<Map<String, Object>> queryBusiDataByNode(Long busiTypeNode, String NaturalPersonId) throws Exception {
		return naturalPersonReportManager.Detail(busiTypeNode, NaturalPersonId);
	}

	@Override
	public List<Map<String, Object>> queryReportList(DataSourceDO dataSourceDO, String naturalPersonId,
			String busiSqldet) throws Exception {
		return naturalPersonReportManager.queryReportList(dataSourceDO, naturalPersonId, busiSqldet);
	}

	@Override
	public boolean save(String naturalPersonId, String batch, int type, String content,String QRCode) throws Exception {
		return naturalPersonReportManager.save(naturalPersonId,batch, type, content,QRCode);
	}

	@Override
	public List<Map<String, Object>> listSnapshot(String naturalPersonId, int limit, int offset) throws Exception {
		return naturalPersonReportManager.listSnapshot(naturalPersonId,limit,offset);
	}

	@Override
	public List<Map<String, Object>> viewSnapShot(String ssId) throws Exception {
		return naturalPersonReportManager.viewSnapShot(ssId);
	}

}
